package com.atguigu.day18.homework.h1;

import org.junit.Test;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/22 21:02
 * @注释
 */
public class CurrentTimePrinterTest {
    @Test
    public void test01(){
        CurrentTimePrinter c = () -> System.out.println(System.currentTimeMillis());
        c.printCurrentTime();
        CurrentTimePrinter c1 = () -> System.out.println(new Date());
        c1.printCurrentTime();
        CurrentTimePrinter c2 = () -> System.out.println(LocalDateTime.now());
        c2.printCurrentTime();
    }
}
